package com.ruoyi.broadcast.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.broadcast.mapper.GbhzMapper;
import com.ruoyi.broadcast.domain.Gbhz;
import com.ruoyi.broadcast.service.IGbhzService;

/**
 * 广播话站Service业务层处理
 * 
 * @author hcc
 * @date 2024-12-01
 */
@Service
public class GbhzServiceImpl extends ServiceImpl<GbhzMapper, Gbhz> implements IGbhzService //修改
{
    @Autowired
    private GbhzMapper gbhzMapper;

    /**
     * 查询广播话站
     * 
     * @param broadcastId 广播话站主键
     * @return 广播话站
     */
    @Override
    public Gbhz selectGbhzByBroadcastId(String broadcastId)
    {
        return gbhzMapper.selectGbhzByBroadcastId(broadcastId);
    }

    /**
     * 查询广播话站列表
     * 
     * @param gbhz 广播话站
     * @return 广播话站
     */
    @Override
    public List<Gbhz> selectGbhzList(Gbhz gbhz)
    {
        return gbhzMapper.selectGbhzList(gbhz);
    }

    /**
     * 新增广播话站
     * 
     * @param gbhz 广播话站
     * @return 结果
     */
    @Override
    public int insertGbhz(Gbhz gbhz)
    {
        return gbhzMapper.insertGbhz(gbhz);
    }

    /**
     * 修改广播话站
     * 
     * @param gbhz 广播话站
     * @return 结果
     */
    @Override
    public int updateGbhz(Gbhz gbhz)
    {
        return gbhzMapper.updateGbhz(gbhz);
    }

    /**
     * 批量删除广播话站
     * 
     * @param broadcastIds 需要删除的广播话站主键
     * @return 结果
     */
    @Override
    public int deleteGbhzByBroadcastIds(String[] broadcastIds)
    {
        return gbhzMapper.deleteGbhzByBroadcastIds(broadcastIds);
    }

    /**
     * 删除广播话站信息
     * 
     * @param broadcastId 广播话站主键
     * @return 结果
     */
    @Override
    public int deleteGbhzByBroadcastId(String broadcastId)
    {
        return gbhzMapper.deleteGbhzByBroadcastId(broadcastId);
    }

    @Override
    public Gbhz selectGbhzByBroadcastByStationCode(String stationCode) {
        return gbhzMapper.selectGbhzByBroadcastByStationCode(stationCode);
    }
}
